package com.k2091.washcar.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author author
 * @since 2021-06-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("cleaner")
public class Cleaner implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 洗车员id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 洗车员名称
     */
    @TableField("name")
    private String name;

    /**
     * 洗车员密码
     */
    @TableField("password")
    private String password;

    /**
     * 头像路径
     */
    @TableField("head_portrait")
    private String headPortrait;

    /**
     * 状态0：正常1：冻结
     */
    @TableField("status")
    private Integer status;

    /**
     * 钱包
     */
    @TableField("balance")
    private BigDecimal balance;

    /**
     * 0：男性，1：女性
     */
    @TableField("sex")
    private Integer sex;

    @TableField("id_number")
    private String idNumber;

    /**
     * 手机号
     */
    @TableField("phone_number")
    private String phoneNumber;

    /**
     * 最后登录时间
     */
    @TableField("last_login")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime lastLogin;

    /**
     * 订单状态 0.未完成  1.已完成
     */
    @TableField("order_status")
    private Integer orderStatus;

    /**
     * 订单号
     */
    @TableField("order_number")
    private Long orderNumber;


}
